import 'package:sqflite/sqflite.dart';
import 'package:sqflite/sqlite_api.dart';

class DbUtil {

  static Future<Database> open(String dbName, String createSql) async => await openDatabase("${dbName}_database.db", version: 1, onCreate: (db, version) async => await db.execute(createSql));

  static Future close(Database db) => db.close();

  static Future delete(String dbName) async => await deleteDatabase("${dbName}_database.db");

}